package com.dldata.devtools30.entity;

import jakarta.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "devt_model_releaselog")
public class DevtModelReleaselogEntity {
    private String id;
    private String code;
    private String name;
    private String formversion;
    private Timestamp releasetime;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "code", nullable = true, length = 64)
    public String getCode() {
        return code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    @Basic
    @Column(name = "name", nullable = true, length = 2147483647)
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Basic
    @Column(name = "formversion", nullable = true, length = 64)
    public String getFormversion() {
        return formversion;
    }
    
    public void setFormversion(String formversion) {
        this.formversion = formversion;
    }
    
    @Basic
    @Column(name = "releasetime", nullable = true)
    public Timestamp getReleasetime() {
        return releasetime;
    }
    
    public void setReleasetime(Timestamp releasetime) {
        this.releasetime = releasetime;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtModelReleaselogEntity that = (DevtModelReleaselogEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(code, that.code) && Objects.equals(name, that.name) &&  Objects.equals(formversion, that.formversion) && Objects.equals(releasetime, that.releasetime);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, code, name, formversion, releasetime);
    }
}
